package Model;

import Model.ObjectViews.MineralLoteView;

public class MineralLote 
{
	//Atributos
	private Mineral mineral;
	private float porcentaje;
	
	//Getters
	public Mineral getMineral() 
	{
		return mineral;
	}
	public float getPorcentaje() 
	{
		return porcentaje;
	}
	
	//Setters
	public void setMineral(Mineral mineral) 
	{
		this.mineral = mineral;
	}
	public void setPorcentaje(float porcentaje) 
	{
		this.porcentaje = porcentaje;
	}
	
	//Constructor
	public MineralLote(Mineral mineral, float porcentaje)
	{
		this.mineral = mineral;
		this.porcentaje = porcentaje;
	}
	
	//View getter
	public MineralLoteView getView()
	{
		MineralLoteView view = new MineralLoteView();
		view.setMineral(this.getMineral().getView());
		view.setPorcentaje(this.getPorcentaje());
		
		return view;
	}
}
